package day240918.lambda.demo02;

public class Test {
    public static void main(String[] args) {
//        MyInterface myInterface=()->{};
    }


    public static void method1() {
        MyInterface myInterface = new MyInterface(){

            @Override
            public void sing() {
                System.out.println("唱");
            }

            @Override
            public void dance() {
                System.out.println("跳");
            }
        };

        myInterface.sing();
        myInterface.dance();
    }
}
